package com.originskyseed.platform.user.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.originskyseed.platform.user.model.PlayerRelateRecharge;
import com.originskyseed.platform.user.model.PlayerRelateRechargeMonth;
import org.apache.ibatis.annotations.Param;

/**
 * 玩家月度充值信息表Mapper类（OSI_PLAYER_RELATE_RECHARGE_MONTH）
 * 
 * @author Tangwanghui
 */
public interface PlayerRelateRechargeMonthMapper {

	/**
	 * 删除记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 * 
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(PlayerRelateRechargeMonth record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(PlayerRelateRechargeMonth record) throws Exception;

	/**
	 * 更新记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(PlayerRelateRechargeMonth record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(PlayerRelateRechargeMonth record) throws Exception;

	/**
	 * 查询记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public PlayerRelateRechargeMonth selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<PlayerRelateRechargeMonth> selectList(PlayerRelateRechargeMonth record) throws Exception;

	/**
	 * 分页查询列表
	 * 
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<PlayerRelateRechargeMonth> selectListByPage(Map<String, Object> params) throws Exception;

	/**
	 * 删除记录根据时间
	 *
	 * @param date
	 * @return
	 * @throws Exception
	 */
	public int deleteByDate(@Param("date") String date) throws Exception;


	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public int updateByPlayerIdAndChannelTime(Map<String, Object> params) throws Exception;


	/**
	 * 查询月度新用户充值金额
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public BigDecimal selectMonthNewRechargeAmountByOtherAccount(Map<String, Object> params) throws Exception;
}